package com.kygeng.springframework.interceptor;

import com.kygeng.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * @Title: UserServiceBeforeAdvice
 * @Author: kygeng
 * @Package: com.kygeng.springframework.interceptor
 * @Date: 2024/8/11 14:29
 * @Description:
 */
public class UserServiceBeforeAdvice implements MethodBeforeAdvice {

    @Override
    public void before(Method method, Object[] args, Object target) throws Throwable {
        System.out.println("拦截方法 before：" + method.getName());
    }
}
